6daacf403b56e3673a882ddba2b9142e6f0f5b0a,itol-addin/src/com/wilutions/itol/MailAttachmentHelper.java,MailAttachmentHelper,exportAttachment,#File#Application#Attachment#ProgressCallback#,452
Before Change
File destFile = makeUniqueExportFileName(dir, new File(dir, matt.getFileName()));
if (log.isLoggable(Level.INFO)) log.info("Export mail attachment to destFile=" + destFile);
matt.SaveAsFile(destFile.getAbsolutePath());
destFile.setLastModified(mailItem.getReceivedTime().getTime());
}
}
After Change
if (log.isLoggable(Level.INFO)) log.info("Export mail attachment to destFile=" + destFile);
if (!destFile.exists()) {
matt.SaveAsFile(destFile.getAbsolutePath());
destFile.setLastModified(mailItem.getReceivedTime().getTime());
}
cbSave.incrProgress(0.5);
}